package  
{
	import flash.display.MovieClip;
	/**
	 * ...
	 * @author Rodrigo Forti & Rafael Bringel
	 */
	public class LevelManager extends MovieClip
	{
		private static var _current : Level_Base;
		
		public function LevelManager() 
		{
			
		}
		
		public static function update() : Boolean
		{
			if (_current == null) 
				return true;
				
			_current.update();
			return false;
		}
		
		public static function get current(): Level_Base
		{
			return _current;
		}
		
		public static function set current(value : Level_Base): void
		{
			if (_current != null) 
				_current.terminate();
				
			_current = value;
			
			if (_current != null) 
				_current.start();
		}
		
	}

}